package com.lee.page;

import com.lee.utils.ServletUtils;

/**
 * 表格数据处理
 * 
 * @author LiPengFei
 *
 */
public class TableSupport {
	/**
	 * 封装分页对象
	 */
	public static PageDomain getPageDomain() {
		PageDomain pageDomain = new PageDomain();
		pageDomain.setPageNum(ServletUtils.getParameterToInt("pageNum"));
		pageDomain.setPageSize(ServletUtils.getParameterToInt("pageSize"));
		pageDomain.setOrderByColumn(ServletUtils.getParameter("orderByColumn"));
		pageDomain.setIsAsc(ServletUtils.getParameter("isAsc"));
		return pageDomain;
	}

}
